<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 
jimport('phpquery.phpquery');
phpQuery::newDocumentHTML($this->item->introtext);
$img = pq("img:first");
?>

<tr valign="top" class="gk_news_show_tablerow">
    <td class="gk_news_show_center" style="width: 100%; padding: 3px;">
        <h4 class="gk_news_show_news_header ta_left">
            <a target="_parent" rel="nofollow" href="<?php echo $this->item->readmore_link; ?>">
                <?php echo $this->item->title; ?></a>
        </h4>
        <?php if($img->size()==1):?>
			<a target="_parent" rel="nofollow" href="<?php echo $this->item->readmore_link; ?>">
				<img style="width: 90px;  margin: 3px;" alt="News image" src="<?php echo $img->attr('src');?>"
					class="gk_news_show_news_image_static i_left"></a>
        <?php endif;?>
                <p class="gk_news_show_news_text ta_justify;">
                    <?php echo strip_tags($this->item->introtext); ?>
                    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
							<a href="<?php echo $this->item->readmore_link; ?>" class="gk_news_show_news_readmore_inline"  rel="nofollow" style='font-size:11px'>
						<?php if ($this->item->readmore_register) :
							echo JText::_('Register to read more...');
						elseif ($readmore = $this->item->params->get('readmore')) :
							echo $readmore;
						else :
							echo JText::sprintf('Read more...');
								endif; ?></a>
					<?php endif; ?>
                    </p>
    </td>
</tr>
